#!/usr/bin/env bash

cur_path=$(pwd)

echo "start to prepare build env"
chmod +x /root/repo/ci-repos/.common_scripts/common.sh
source /root/repo/ci-repos/.common_scripts/common.sh
set_gitee_hosts
prepare_git $1 $2
prepare_conan2 $3 $4
prepare_bingo
prepare_sdk

echo "start to execute build"
cd ${cur_path}
bingo build -bt debug --stage stable
bingo build -bt debug --stage rc
bingo build -bt release --stage stable
bingo build -bt release --stage rc